package io.flutter.facade;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public interface DkFlutterInterface {
    //Fragment和Activity共有
    void onResume();

    void onPause();

    void onStop();

    void onDestroy();

    void onActivityResult(int requestCode, int resultCode, Intent data);

    void onSaveInstanceState(@NonNull Bundle outState);

    //Fragment独有
    View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState, View contentView);

    void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState);

    void onActivityCreated(@Nullable Bundle savedInstanceState);

    void onDestroyView();

    void onViewStateRestored(@Nullable Bundle savedInstanceState);

    //Activity独有
    void onCreate(Bundle savedInstanceState);

    void onNewIntent(Intent intent);

    void onStart();

    void onRestart();

    void onLowMemory();

    void onRestoreInstanceState(Bundle savedInstanceState);
}
